package com.leoman.plz_p.module.api;


import com.leoman.plz_p.constants.Urls;
import com.leoman.plz_p.module.bean.BaseData;
import com.leoman.plz_p.module.bean.CodeBean;
import com.leoman.plz_p.module.bean.MapData;

import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by guoh on 2018/7/15.
 */
public interface LoginApi {

    @POST(Urls.LOGIN)
    Observable<BaseData<MapData>> login(@Query("studentId") String studentId, @Query("password") String password, @Query("captcha") String captcha, @Query("cc") String cc);


    @POST(Urls.GET_CODE)
    Observable<BaseData<CodeBean>> getCode(@Query("cc") String cc);
}
